home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 49 / PCPP49a.iso / editors / sofsdk / SoF SDK.msi / _FE5AEF8C622E4CE496F80F6246FD4858 < prev    next >
Encoding:
Text File  |  2000-03-27  |  1.7 KB  |  47 lines

  1. #include "../common/header.ds"
  2. output "p:/base/ds/tsr1"
  3.  
  4. /////////////////////////////////////////////////
  5. // Declare
  6.  
  7. local entity camroom_door
  8. local entity camroom_hole
  9. local entity camroom_guys
  10. local entity sparks1 // the spark gen by the fusebox
  11. local entity right // the monitor towards the right
  12. local entity backwall // the monitor by the back wall
  13. local entity camdoorkicker // the guy who will actually kick the door open
  14. local entity openin
  15. local int sig1
  16. local int sig2
  17.  
  18. /////////////////////////////////////////////////
  19. // Assign
  20.  
  21. camroom_door = find entity with targetname "camroom_door"
  22. camroom_hole = find entity with targetname "camroom_hole"
  23. camroom_guys = find entity with targetname "camroom_guys"
  24. sparks1 = find entity with targetname "sparks1"
  25. right = find entity with targetname "right"
  26. backwall = find entity with targetname "backwall"
  27. camdoorkicker = find entity with targetname "camdoorkicker"
  28. openin = find entity with targetname "openin"
  29.  
  30. /////////////////////////////////////////////////
  31. // Action
  32.  
  33. camroom_hole.movetype = MOVETYPE_NOCLIP
  34. rotate entity camroom_door by [0,90,0] at 155 speed signaling sig1
  35. rotate entity camroom_hole by [0,90,0] at 155 speed signaling sig2
  36. wait for all clearing sig1,sig2
  37. use entity openin // should set this off because it had to be on already
  38.  
  39. use entity camdoorkicker //spawns the guy who will actually kick the door in
  40. use entity camdoorkicker //  sends him to his point combat
  41.  
  42. use entity camroom_guys // spawns the guys in
  43. play sound "Speech/tsr1/skn/bt9-1.adp" for entity camdoorkicker at volume 0.9
  44.  
  45. // animate entity camdoorkicker performing action STD_R_N_PK_N by moving [0, 512, 0] // moves him towards the door 256
  46.  
  47.